<!DOCTYPE html>
<html lang="en">
<head>
    <meta  http-equiv="content-type" content="text/html" charset="utf-8"/>
    <meta charset="UTF-8">
    <title>Title</title>

    <script type="text/javascript">
    var k = 10;
        function test(){
            this.k = 20;
        }
        test();
        alert(test.k);//undefiend

    </script>
</head>
<body>

</body>
</html>